<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>MiXiM: ConcatConstMapping&lt; Operator &gt; Class Template Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">MiXiM
   &#160;<span id="projectnumber">2.3</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li><a href="dirs.html"><span>Directories</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('a00049.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-types">Protected Types</a> &#124;
<a href="#pro-attribs">Protected Attributes</a>  </div>
  <div class="headertitle">
<div class="title">ConcatConstMapping&lt; Operator &gt; Class Template Reference<div class="ingroups"><a class="el" href="a00520.html">mappingDetails - mostly internal mapping classes</a></div></div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="ConcatConstMapping" --><!-- doxytag: inherits="ConstMapping" -->
<p>Defines it values by concatenating one or more Mappings to a reference <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a>.  
 <a href="a00049.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="a00300_source.html">MappingUtils.h</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for ConcatConstMapping&lt; Operator &gt;:</div>
<div class="dyncontent">
<div class="center"><img src="a00642.png" border="0" usemap="#ConcatConstMapping_3_01Operator_01_4_inherit__map" alt="Inheritance graph"/></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>
<div class="dynheader">
Collaboration diagram for ConcatConstMapping&lt; Operator &gt;:</div>
<div class="dyncontent">
<div class="center"><img src="a00643.png" border="0" usemap="#ConcatConstMapping_3_01Operator_01_4_coll__map" alt="Collaboration graph"/></div>
<center><span class="legend">[<a target="top" href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="a00644.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a46236c957b122c4e16d83f7e804dcb06"></a><!-- doxytag: member="ConcatConstMapping::ConcatConstMapping" ref="a46236c957b122c4e16d83f7e804dcb06" args="(const ConcatConstMapping &amp;o)" -->
&#160;</td><td class="memItemRight" valign="bottom"><b>ConcatConstMapping</b> (const <a class="el" href="a00049.html">ConcatConstMapping</a> &amp;o)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="a00049.html">ConcatConstMapping</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#ab93320011f9c96397d1c4e116d2e1525">operator=</a> (const <a class="el" href="a00049.html">ConcatConstMapping</a> &amp;copy)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">ConcatConstMapping assignment operator.  <a href="#ab93320011f9c96397d1c4e116d2e1525"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#a6622816a1d58aa2cf1bdc1f97df22c7c">swap</a> (<a class="el" href="a00049.html">ConcatConstMapping</a> &amp;s)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Swaps data with another ConcatConstMapping.  <a href="#a6622816a1d58aa2cf1bdc1f97df22c7c"></a><br/></td></tr>
<tr><td class="memTemplParams" colspan="2"><a class="anchor" id="abfce216332c75a11be1d8ef96dadac18"></a><!-- doxytag: member="ConcatConstMapping::ConcatConstMapping" ref="abfce216332c75a11be1d8ef96dadac18" args="(ConstMapping *refMapping, Iterator first, Iterator last, bool continueOutOfRange=true, Argument::mapped_type_cref oorValue=Argument::MappedZero, Operator op=Operator())" -->
template&lt;class Iterator &gt; </td></tr>
<tr><td class="memTemplItemLeft" align="right" valign="top">&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="a00049.html#abfce216332c75a11be1d8ef96dadac18">ConcatConstMapping</a> (<a class="el" href="a00058.html">ConstMapping</a> *refMapping, Iterator first, Iterator last, bool continueOutOfRange=true, Argument::mapped_type_cref oorValue=<a class="el" href="a00013.html#a8523627cdc70492e5e0935b9a3a78cc4">Argument::MappedZero</a>, Operator op=Operator())</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes with the passed reference <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a>, the operator and the Mappings defined by the passed iterator. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae380dac709f74ae64e14c12eb978c46f"></a><!-- doxytag: member="ConcatConstMapping::ConcatConstMapping" ref="ae380dac709f74ae64e14c12eb978c46f" args="(ConstMapping *refMapping, ConstMapping *other, bool continueOutOfRange=true, Argument::mapped_type_cref oorValue=Argument::MappedZero, Operator op=Operator())" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#ae380dac709f74ae64e14c12eb978c46f">ConcatConstMapping</a> (<a class="el" href="a00058.html">ConstMapping</a> *refMapping, <a class="el" href="a00058.html">ConstMapping</a> *other, bool continueOutOfRange=true, Argument::mapped_type_cref oorValue=<a class="el" href="a00013.html#a8523627cdc70492e5e0935b9a3a78cc4">Argument::MappedZero</a>, Operator op=Operator())</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Initializes with the passed reference <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a>, the operator and another <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a> to concatenate. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad9e4caf92010d92e76ed86a597e3399f"></a><!-- doxytag: member="ConcatConstMapping::addMapping" ref="ad9e4caf92010d92e76ed86a597e3399f" args="(ConstMapping *m)" -->
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#ad9e4caf92010d92e76ed86a597e3399f">addMapping</a> (<a class="el" href="a00058.html">ConstMapping</a> *m)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Adds another <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a> to the list of Mappings to concatenate. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual Argument::mapped_type&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#a28448679df346f8baf0f889bc0ab522a">getValue</a> (const <a class="el" href="a00013.html">Argument</a> &amp;pos) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the value of this <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a> at the position specified by the passed <a class="el" href="a00013.html" title="Defines an argument for a mapping.">Argument</a>.  <a href="#a28448679df346f8baf0f889bc0ab522a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a575967e48547622110a29a7b90f3c71a"></a><!-- doxytag: member="ConcatConstMapping::createConcatenatedMapping" ref="a575967e48547622110a29a7b90f3c71a" args="() const " -->
<a class="el" href="a00136.html">Mapping</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#a575967e48547622110a29a7b90f3c71a">createConcatenatedMapping</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the concatenated <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a>. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="a00059.html">ConstMappingIterator</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#a417cebabd88daa682ea0f3cae877eae2">createConstIterator</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer of a new Iterator which is able to iterate over this <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a>.  <a href="#a417cebabd88daa682ea0f3cae877eae2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="a00059.html">ConstMappingIterator</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#a738035f30d7c365838469aa3eb7e7381">createConstIterator</a> (const <a class="el" href="a00013.html">Argument</a> &amp;pos) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns a pointer of a new Iterator which is able to iterate over the function. The iterator starts at the passed position.  <a href="#a738035f30d7c365838469aa3eb7e7381"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad8c0293ec56947b986802fcb636e42b7"></a><!-- doxytag: member="ConcatConstMapping::constClone" ref="ad8c0293ec56947b986802fcb636e42b7" args="() const " -->
virtual <a class="el" href="a00058.html">ConstMapping</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#ad8c0293ec56947b986802fcb636e42b7">constClone</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">returns a deep copy of this mapping instance. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abcd3a9507ddf2e6e227fb0682f736b9a"></a><!-- doxytag: member="ConcatConstMapping::getRefMapping" ref="abcd3a9507ddf2e6e227fb0682f736b9a" args="()" -->
<a class="el" href="a00058.html">ConstMapping</a> *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="a00049.html#abcd3a9507ddf2e6e227fb0682f736b9a">getRefMapping</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the pointer to the reference mapping. <br/></td></tr>
<tr><td colspan="2"><h2><a name="pro-types"></a>
Protected Types</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afddf6a03d86de6f473b3b36e9523412e"></a><!-- doxytag: member="ConcatConstMapping::DimIteratorPair" ref="afddf6a03d86de6f473b3b36e9523412e" args="" -->
typedef std::pair&lt; <a class="el" href="a00085.html">Dimension</a>, <br class="typebreak"/>
<a class="el" href="a00013.html#a521abc97d737e8c77742dcc9f4b21022">Argument::const_iterator</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>DimIteratorPair</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a633e23b7b9cc932171a9242d286f0970"></a><!-- doxytag: member="ConcatConstMapping::MappingSet" ref="a633e23b7b9cc932171a9242d286f0970" args="" -->
typedef std::list&lt; <a class="el" href="a00058.html">ConstMapping</a> * &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>MappingSet</b></td></tr>
<tr><td colspan="2"><h2><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0709d9769788a41c2bb43dbb62aea751"></a><!-- doxytag: member="ConcatConstMapping::mappings" ref="a0709d9769788a41c2bb43dbb62aea751" args="" -->
MappingSet&#160;</td><td class="memItemRight" valign="bottom"><b>mappings</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a86b5292b536c5392543dc355111b19e9"></a><!-- doxytag: member="ConcatConstMapping::refMapping" ref="a86b5292b536c5392543dc355111b19e9" args="" -->
<a class="el" href="a00058.html">ConstMapping</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>refMapping</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9fe7cdfd0278ebb79d419fe6d4073a8b"></a><!-- doxytag: member="ConcatConstMapping::continueOutOfRange" ref="a9fe7cdfd0278ebb79d419fe6d4073a8b" args="" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>continueOutOfRange</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aabd4c2441626a2cf4af7a727e78bedde"></a><!-- doxytag: member="ConcatConstMapping::oorValue" ref="aabd4c2441626a2cf4af7a727e78bedde" args="" -->
Argument::mapped_type&#160;</td><td class="memItemRight" valign="bottom"><b>oorValue</b></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af39cd5ee8c6ffea095d07d919162ea55"></a><!-- doxytag: member="ConcatConstMapping::op" ref="af39cd5ee8c6ffea095d07d919162ea55" args="" -->
Operator&#160;</td><td class="memItemRight" valign="bottom"><b>op</b></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><h3>template&lt;class Operator&gt;<br/>
class ConcatConstMapping&lt; Operator &gt;</h3>

<p>Defines it values by concatenating one or more Mappings to a reference <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a>. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>Karl Wessel </dd></dl>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a417cebabd88daa682ea0f3cae877eae2"></a><!-- doxytag: member="ConcatConstMapping::createConstIterator" ref="a417cebabd88daa682ea0f3cae877eae2" args="() const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Operator &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="a00059.html">ConstMappingIterator</a>* <a class="el" href="a00049.html">ConcatConstMapping</a>&lt; Operator &gt;::createConstIterator </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a pointer of a new Iterator which is able to iterate over this <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a>. </p>
<p>See class ConstIterator for details. </p>

<p>Implements <a class="el" href="a00058.html#a5ff3a15fe6d536fa7a26a3fe1ff1b274">ConstMapping</a>.</p>

<p>References <a class="el" href="a00049.html#a575967e48547622110a29a7b90f3c71a">ConcatConstMapping&lt; Operator &gt;::createConcatenatedMapping()</a>, and <a class="el" href="a00058.html#a5ff3a15fe6d536fa7a26a3fe1ff1b274">ConstMapping::createConstIterator()</a>.</p>
<div class="fragment"><pre class="fragment">                                                            {
    <span class="keywordflow">if</span>(mappings.empty()) {
      <span class="keywordflow">return</span> refMapping-&gt;<a class="code" href="a00058.html#a5ff3a15fe6d536fa7a26a3fe1ff1b274" title="Returns a pointer of a new Iterator which is able to iterate over this Mapping.">createConstIterator</a>();
    }
    <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="a00050.html" title="Deletes its ConstMapping when this iterator is deleted.">ConcatConstMappingIterator</a>(<a class="code" href="a00049.html#a575967e48547622110a29a7b90f3c71a" title="Returns the concatenated Mapping.">createConcatenatedMapping</a>());
  }
</pre></div>
</div>
</div>
<a class="anchor" id="a738035f30d7c365838469aa3eb7e7381"></a><!-- doxytag: member="ConcatConstMapping::createConstIterator" ref="a738035f30d7c365838469aa3eb7e7381" args="(const Argument &amp;pos) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Operator &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">virtual <a class="el" href="a00059.html">ConstMappingIterator</a>* <a class="el" href="a00049.html">ConcatConstMapping</a>&lt; Operator &gt;::createConstIterator </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00013.html">Argument</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em></td><td>)</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns a pointer of a new Iterator which is able to iterate over the function. The iterator starts at the passed position. </p>
<p>See class ConstIterator for details. </p>

<p>Implements <a class="el" href="a00058.html#a951552e2e7f48717ed79d540af538d73">ConstMapping</a>.</p>

<p>References <a class="el" href="a00049.html#a575967e48547622110a29a7b90f3c71a">ConcatConstMapping&lt; Operator &gt;::createConcatenatedMapping()</a>, and <a class="el" href="a00058.html#a5ff3a15fe6d536fa7a26a3fe1ff1b274">ConstMapping::createConstIterator()</a>.</p>
<div class="fragment"><pre class="fragment">                                                                               {
    <span class="keywordflow">if</span>(mappings.empty()) {
      <span class="keywordflow">return</span> refMapping-&gt;<a class="code" href="a00058.html#a5ff3a15fe6d536fa7a26a3fe1ff1b274" title="Returns a pointer of a new Iterator which is able to iterate over this Mapping.">createConstIterator</a>(pos);
    }
    <span class="keywordflow">return</span> <span class="keyword">new</span> <a class="code" href="a00050.html" title="Deletes its ConstMapping when this iterator is deleted.">ConcatConstMappingIterator</a>(<a class="code" href="a00049.html#a575967e48547622110a29a7b90f3c71a" title="Returns the concatenated Mapping.">createConcatenatedMapping</a>(), pos);
  }
</pre></div>
</div>
</div>
<a class="anchor" id="a28448679df346f8baf0f889bc0ab522a"></a><!-- doxytag: member="ConcatConstMapping::getValue" ref="a28448679df346f8baf0f889bc0ab522a" args="(const Argument &amp;pos) const " -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Operator &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">virtual Argument::mapped_type <a class="el" href="a00049.html">ConcatConstMapping</a>&lt; Operator &gt;::getValue </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00013.html">Argument</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em></td><td>)</td>
          <td> const<code> [inline, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the value of this <a class="el" href="a00136.html" title="Represents a changeable mapping (mathematical function) from at least time to Argument::mapped_type.">Mapping</a> at the position specified by the passed <a class="el" href="a00013.html" title="Defines an argument for a mapping.">Argument</a>. </p>
<p>The complexity of this method depends on the actual implementation. </p>

<p>Implements <a class="el" href="a00058.html#afabbd15bb8f50e45901f99633d0a47c9">ConstMapping</a>.</p>

<p>References <a class="el" href="a00058.html#afabbd15bb8f50e45901f99633d0a47c9">ConstMapping::getValue()</a>.</p>
<div class="fragment"><pre class="fragment">                                                                  {
    <span class="keyword">const</span> MappingSet::const_iterator itEnd = mappings.end();
    Argument::mapped_type            res   = refMapping-&gt;<a class="code" href="a00058.html#afabbd15bb8f50e45901f99633d0a47c9" title="Returns the value of this Mapping at the position specified by the passed Argument.">getValue</a>(pos);

    <span class="keywordflow">for</span> (MappingSet::const_iterator it = mappings.begin(); it != itEnd; ++it) {
      res = op(res, (*it)-&gt;getValue(pos));
    }

    <span class="keywordflow">return</span> res;
  }
</pre></div>
</div>
</div>
<a class="anchor" id="ab93320011f9c96397d1c4e116d2e1525"></a><!-- doxytag: member="ConcatConstMapping::operator=" ref="ab93320011f9c96397d1c4e116d2e1525" args="(const ConcatConstMapping &amp;copy)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Operator &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="a00049.html">ConcatConstMapping</a>&amp; <a class="el" href="a00049.html">ConcatConstMapping</a>&lt; Operator &gt;::operator= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="a00049.html">ConcatConstMapping</a>&lt; Operator &gt; &amp;&#160;</td>
          <td class="paramname"><em>copy</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>ConcatConstMapping assignment operator. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">copy</td><td>A ConcatConstMapping of identical element and allocator types.</td></tr>
  </table>
  </dd>
</dl>
<p>All the elements of <em>copy</em> are copied. </p>

<p>References <a class="el" href="a00049.html#a6622816a1d58aa2cf1bdc1f97df22c7c">ConcatConstMapping&lt; Operator &gt;::swap()</a>.</p>
<div class="fragment"><pre class="fragment">  {
    <a class="code" href="a00049.html" title="Defines it values by concatenating one or more Mappings to a reference Mapping.">ConcatConstMapping</a> tmp(copy); <span class="comment">// All resource all allocation happens here.</span>
                                    <span class="comment">// If this fails the copy will throw an exception</span>
                                    <span class="comment">// and &#39;this&#39; object is unaffected by the exception.</span>
    <a class="code" href="a00049.html#a6622816a1d58aa2cf1bdc1f97df22c7c" title="Swaps data with another ConcatConstMapping.">swap</a>(tmp);
    <span class="keywordflow">return</span> *<span class="keyword">this</span>;
  }
</pre></div>
</div>
</div>
<a class="anchor" id="a6622816a1d58aa2cf1bdc1f97df22c7c"></a><!-- doxytag: member="ConcatConstMapping::swap" ref="a6622816a1d58aa2cf1bdc1f97df22c7c" args="(ConcatConstMapping &amp;s)" -->
<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;class Operator &gt; </div>
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="a00049.html">ConcatConstMapping</a>&lt; Operator &gt;::swap </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="a00049.html">ConcatConstMapping</a>&lt; Operator &gt; &amp;&#160;</td>
          <td class="paramname"><em>s</em></td><td>)</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Swaps data with another ConcatConstMapping. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">s</td><td>A ConcatConstMapping of the same element and allocator types.</td></tr>
  </table>
  </dd>
</dl>
<p>This exchanges the elements between two ConcatConstMapping's in constant time. Note that the global std::swap() function is specialized such that std::swap(s1,s2) will feed to this function. </p>

<p>Referenced by <a class="el" href="a00049.html#ab93320011f9c96397d1c4e116d2e1525">ConcatConstMapping&lt; Operator &gt;::operator=()</a>.</p>
<div class="fragment"><pre class="fragment">  {
    <a class="code" href="a00049.html#a6622816a1d58aa2cf1bdc1f97df22c7c" title="Swaps data with another ConcatConstMapping.">ConstMapping::swap</a>(s); <span class="comment">// swap the base class members</span>
    <span class="comment">/* Swap all D members */</span>
    <a class="code" href="a00049.html#a6622816a1d58aa2cf1bdc1f97df22c7c" title="Swaps data with another ConcatConstMapping.">std::swap</a>(mappings,           s.mappings);
    <a class="code" href="a00049.html#a6622816a1d58aa2cf1bdc1f97df22c7c" title="Swaps data with another ConcatConstMapping.">std::swap</a>(refMapping,         s.refMapping);
    <a class="code" href="a00049.html#a6622816a1d58aa2cf1bdc1f97df22c7c" title="Swaps data with another ConcatConstMapping.">std::swap</a>(continueOutOfRange, s.continueOutOfRange);
    <a class="code" href="a00049.html#a6622816a1d58aa2cf1bdc1f97df22c7c" title="Swaps data with another ConcatConstMapping.">std::swap</a>(oorValue,           s.oorValue);
    <a class="code" href="a00049.html#a6622816a1d58aa2cf1bdc1f97df22c7c" title="Swaps data with another ConcatConstMapping.">std::swap</a>(op,                 s.op);
  }
</pre></div>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>D:/Projects/MiXiM/extsrc/mixim/src/base/phyLayer/<a class="el" href="a00300_source.html">MappingUtils.h</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="a00049.html">ConcatConstMapping</a>      </li>

    <li class="footer">Generated on Tue Mar 5 2013 21:26:31 for MiXiM by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.5.1 </li>
   </ul>
 </div>


</body>
</html>
